package controller.admin ;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import Bean.noticeBean;
import dao.noticeDao;


public class findController implements Controller{

	private noticeDao adntdao;

	public void setAdntdao(noticeDao adntdao) {
		this.adntdao = adntdao;
	}

	@Override
	public ModelAndView handleRequest(HttpServletRequest request,
			HttpServletResponse arg1) throws Exception {
		int nno = Integer.parseInt(request.getParameter("nno"));
		noticeBean bean = adntdao.getInfo(nno);

		return new ModelAndView("noticeDetail", "notice", bean);
	}	
}